package com.thyme.user.service.user;

import com.thyme.user.dao.user.UserMapper;
import com.thyme.user.domain.entity.user.User;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;

/**
 * @author thyme
 * @ClassName UserController
 * @Description TODO
 * @Date 2019/10/31 9:40
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserService {

    private final UserMapper userMapper;

    public User findById(Integer id) {
        //
        return this.userMapper.selectByPrimaryKey(id);
    }

}
